#include "pixmapitem.h"

TextInformationItem::TextInformationItem (QGraphicsItem *parent)
    : QGraphicsTextItem(parent)
{
    setFont(QFont("Comic Sans MS", 15));
}

void TextInformationItem::setMessage(const QString &text)
{
    setHtml(text);
    setPos(parentItem()->boundingRect().center().x() - boundingRect().size().width() / 2,
           parentItem()->boundingRect().center().y());
}
